package models_main

import (
	"fmt"
	"longmen/server/pkg/db/mysql/models"
	"time"
)

type Links struct {
	ID         int       `json:"id" gorm:"primaryKey;autoIncrement"` //int(11) NOT NULL AUTO_INCREMENT,
	Title      string    `json:"title"`                              //varchar(255) DEFAULT NULL,
	URL        string    `json:"url"`                                //text,
	Sort       int       `json:"sort"`
	CreateTime time.Time `json:"create_time"` //datetime DEFAULT NULL,
}

func (Links) TableName() string {
	return fmt.Sprintf("%slinks", models.Prefix)
}
